package com.graduation.alien_yuan.smartmusicplayer.database;

import com.activeandroid.Model;
import com.activeandroid.annotation.Column;
import com.activeandroid.annotation.Table;

/**
 * Created by Alien_yuan on 2016/3/7.
 */
@Table(name = "user")
public class User extends Model {

    @Column(name = "user_id")
    public String id;

    @Column(name = "register_at")
    public String registerAt;

    @Column(name = "name")
    public String name;

    @Column(name = "email")
    public String email;

    @Column(name = "spectrum_json")
    public String spectrum_json;

    public static void saveUserLog(String id,String registerAt,String name,String email,String spectrum_json){
        User user = new User();
        user.id = id;
        user.registerAt = registerAt;
        user.name = name;
        user.email = email;
        user.spectrum_json = spectrum_json;
        user.save();
    }

}
